From a20274f18d5eb8c9ec84cd16be27722702c206db Mon Sep 17 00:00:00 2001 From: "iap10@labyrinth.cl.cam.ac.uk" Date: Thu, 17 Jun 2004 15:58:19 +0000 Subject: [PATCH] bitkeeper revision 1.980 (40d1bf9b6R-fYlUdANMWAhHfwyItoQ) xm_dom_control bug fix --- tools/examples/xm_dom_control.py | 4 +++- tools/xenmgr/lib/XendDomainInfo.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/examples/xm_dom_control.py b/tools/examples/xm_dom_control.py index 2c93a9fed1..d098ee4a24 100755 --- a/tools/examples/xm_dom_control.py +++ b/tools/examples/xm_dom_control.py @@ -129,7 +129,9 @@ elif cmd == 'pincpu': elif cmd == 'list': print 'Dom Name Mem(MB) CPU State Time(s)' - for dom in server.xend_domains(): + doms = server.xend_domains() + doms.sort() + for dom in doms: info = server.xend_domain(dom) d = {} d['dom'] = int(dom) diff --git a/tools/xenmgr/lib/XendDomainInfo.py b/tools/xenmgr/lib/XendDomainInfo.py index 2318df68fc..b03d83a15d 100644 --- a/tools/xenmgr/lib/XendDomainInfo.py +++ b/tools/xenmgr/lib/XendDomainInfo.py @@ -116,7 +116,7 @@ class XendDomainInfo: state = run + stop sxpr.append(['cpu', self.info['cpu']]) sxpr.append(['state', state]) - sxpr.append(['cpu_time', self.info['cpu_time']/1e8]) + sxpr.append(['cpu_time', self.info['cpu_time']/1e9]) if self.console: sxpr.append(self.console.sxpr()) if self.config: -- 2.30.2